<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/mobile/resignationManager.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
		}
	});
})

function transfer_reimburseManager() {
	var code = $('#reimburse_code').val();
	var pc = $('#pc').val();
	if (code == null || pc == ''){
		return false;
	}
	console.log(code,pc);
	var parm =  {'code':code, 'pc': pc};
	var url = create_url('reimburseManager-transfer');
	$.ajax({type:'POST',url:url, data:parm,
		success:function (result) {
				sys_submiting_close();
			if (result == 'success') {
				sys_msg('操作成功!');
				sys_load_handle('reimburseManager');
			} else {
				sys_msg('操作失败!');
			}
		}
	});
}

</script>
<div class="widget" style="margin:0px;">
	<div class="widget-content">
		<div class="table-title">
		<form id="editForm">
			<input type="hidden" id="resignation_code" value="${(resignation.code)!''}"/>
			<table class="table table-bordered animate2 fadeInUp" style="width:100%; text-align:left;">
				<tr>
					<td class="table-left" style="width:80px;">申请部门:</td>
					<td>${(resignation.on)!''}</td>
				</tr>
				<tr>
					<td class="table-left" style="width:80px;">申请人：</td>
					<td>${(resignation.cn)!''}</td>
				</tr>
				<tr>
					<td class="table-left">离职原因:</td>
					<td>${(resignation.reason)!''}</td>
				</tr>
				<tr>
					<td class="table-left">备注:</td>
					<td>${(resignation.remark)!''}</td>
				</tr>
				<tr>
					<#list resignation.auditStatusList as list>
					<#if list.status == 2>
						<td class="table-left">驳回原因</td>
						<td><textarea id="remark" name="remark">${(list.remark)!''}</textarea></td>
					<#elseif list.status == 1>
					<#else>
						<td class="table-left">驳回原因</td>	
						<td><textarea id="remark" name="remark" placeholder="驳回的话请你填写原因"></textarea></td>
					</#if>
					</#list>
				</tr>
				<#if (resignation.auditStatusList?? && resignation.auditStatusList?size gt 0)>
					<#list resignation.auditStatusList as item>
					<input id="pc" value="${(item.pc)!''}" type="hidden"/>
						<#if item.au??>
							<tr>
								<td colspan="4" style="text-align:center; color: red">已审核</td>
							</tr>
							<tr>
								<td colspan="4" style="text-align:center;"><a class="btn btn-info" href="javascript:;" onclick="javascript: sys_load_handle('resignationManager');">关闭</a></td>
							</tr>
						<#else>
							<tr>
								<td colspan="5" style="text-align:center;">
									<a class="btn btn-info" href="javascript:;" pic="${(resignation.code)!''}" onclick="javascript: updateDesignate1_resignationManager($('#resignation_code').val());sys_load_handle('resignationManager'); return false;">通过</a>
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<a class="btn btn-info" href="javascript:;" onmousemove="javascript:check_resignationManager();"  pic="${(resignation.code)!''}" onclick="javascript: updateDesignate2_resignationManager($('#resignation_code').val());sys_load_handle('resignationManager');">驳回</a>
								</td>
							</tr>
							<#break/>
						</#if>
					</#list>
				</#if>
			</table>
			</form>
		</div>
	</div>
</div>